SERVERPATH=/app/server/JRLC-service
TARPACKAGE_NM=JRLC-service-1.0-SNAPSHOT
tail=-assembly
source /etc/profile
echo "停止原服务"${SERVERPATH}/${TARPACKAGE_NM}
cd ${SERVERPATH}/${TARPACKAGE_NM}/bin
./stop.sh 


echo "解压新服务"${SERVERPATH}/${TARPACKAGE_NM}
cd ${SERVERPATH}/
rm -rf ${TARPACKAGE_NM}${tail}.tar.gz
cp /tmp/${TARPACKAGE_NM}${tail}.tar.gz .
rm -rf ${TARPACKAGE_NM}
tar -zxvf ${TARPACKAGE_NM}${tail}.tar.gz

echo "启动新服务"${SERVERPATH}/${TARPACKAGE_NM}${tail}
cd ${SERVERPATH}/${TARPACKAGE_NM}/bin
./start.sh 
